package com.weng.bigdata.core.jdbc.model.meta;


import java.util.List;

/**
 * 表模型
 * @author wengzhonghui
 * @date 2021/3/24 19:00
 */
public class TableMeta {

	/**
	 * 表名
	 */
	private String name;

	/**
	 * 表注释
	 */
	private String remark;

	/**
	 * 列
	 */
	private List<ColumnMeta> columns;

	/**
	 * 主键
	 */
	private List<String> primaryKeys;

	/*
	 * 存储格式
	 */
	private String storedFormat;


    public TableMeta() {
    }

    public TableMeta(String name, List<String> primaryKeys, List<ColumnMeta> columns) {
        this.name = name;
        this.columns = columns;
        this.primaryKeys = primaryKeys;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<ColumnMeta> getColumns() {
		return columns;
	}

	public void setColumns(List<ColumnMeta> columns) {
		this.columns = columns;
	}

	public String getStoredFormat() {
		return storedFormat;
	}

	public void setStoredFormat(String storedFormat) {
		this.storedFormat = storedFormat;
	}

	public List<String> getPrimaryKeys() {
		return primaryKeys;
	}

	public void setPrimaryKeys(List<String> primaryKeys) {
		this.primaryKeys = primaryKeys;
	}
}
